// element-ui覆盖样式 (旧)
// 左侧菜单覆盖
.el-menu {
  border: none;
  list-style: none;
  position: relative;
  margin: 0;
  padding-left: 0;
}
.el-submenu .el-menu-item {
  background-color: #000c17 !important;
  color: #aeaeae !important;
}
.el-submenu .el-menu-item:hover {
  color: #ffffff !important;
}
.el-submenu i, .el-menu-item i, .el-menu-item.is-active i {
  color: #ffffff;
  margin-left: 4px;
  font-size: 18px;
}
.el-menu-item span, .el-submenu .el-submenu__title span {
  margin-left: 10px;
}
.el-menu-item.is-active {
  background-color: #1890ff !important;
  span {
    color: #ffffff;
  }
}
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 220px;
  min-height: 100%;
}
.el-menu-vertical-demo.el-menu--collapse {
  min-height: 100%;
  .el-submenu, .el-menu-item {
    .iconfont {
      margin-left: 0;
      font-size: 20px;
    }
  }
}
//树节点样式覆盖
.el-tree {
  overflow: visible;
  min-height: 100%;
}
.el-tree-node__content > .el-tree-node__expand-icon {
  margin-left: 5px;
  padding: 6px 4px;
}
.el-tree-node > .el-tree-node__children {
  overflow: visible;
}
.el-tree--highlight-current .el-tree-node > .el-tree-node__content .el-tree-node__label {
  padding: 5px 5px 4px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all .3s;
}
// 带勾选的树结构
.table .el-tree--highlight-current .el-tree-node > .el-tree-node__content .el-tree-node__label {
  padding: 0 5px;
}
.el-tree--highlight-current .el-tree-node > .el-tree-node__content:hover {
  background: #ffffff;
}
.el-tree--highlight-current .el-tree-node > .el-tree-node__content:hover .el-tree-node__label {
  background: #e6f7ff;
}
.el-tree--highlight-current .el-tree-node > .el-tree-node__content {
  cursor: auto;
}
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content,
.el-tree--highlight-current .el-tree-node.is-expanded > .el-tree-node__content,
.el-tree--highlight-current .el-tree-node.is-focusable > .el-tree-node__content {
  cursor: auto;
  background: #ffffff;
}
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content .el-tree-node__label {
  color: #ffffff;
  background: #1890ff;
}
// 下拉菜单
.el-dropdown-menu--small .el-dropdown-menu__item {
  position: relative;
  text-align: center;
  a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
// 禁用输入框样式
.el-input.is-disabled .el-input__inner {
  background-color: #ffffff;
  border-color: #e4e7ed;
  color: #c0c4cc;
  cursor: not-allowed;
}
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}
.el-upload__input {
  display: none;
}
//暂时性解决 diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}
//element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}
.el-table--border.el-loading-parent--relative {
  border: 1px solid #ebeef5;
  border-right: none;
  border-bottom: none;
}
.el-loading-mask {
  top: 0;
  right: 1px;
  bottom: 1px;
  left: 0;
}
//覆盖表头
.el-table th.is-leaf {
  background: #fafafa;
  font-weight: normal;
  color: rgba(0, 0, 0, .85);
}
//修复表头错位问题
body .el-table th.gutter {
  display: table-cell !important;
}
body .el-table colgroup.gutter {
  display: table-cell !important;
}
//table悬停选中背景色
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
.el-table__body tr.current-row > td,
.el-table__body tr.hover-row.current-row > td,
.el-table__body tr.hover-row.el-table__row--striped.current-row > td,
.el-table__body tr.hover-row.el-table__row--striped > td,
.el-table__body tr.hover-row > td {
  background-color: #e6f7ff;
}
// 分页背景色
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #fff;
  color: #1890ff;
  border: 1px solid #1890ff;
}
.el-scrollbar__wrap {
  overflow-x: hidden;
}
.el-select-dropdown__wrap.el-scrollbar__wrap {
  overflow-x: scroll;
}
//form表单中只读label
.el-form-item--small .el-form-item__content label {
  line-height: 32px;
  display: inline-block;
  padding: 0 5px;
  color: #606266;
}
//mini按钮的填充重绘
.el-button.el-button--mini {
  padding: 7px 10px;
  font-size: 12px;
}
//mini按钮的下拉菜单的大小重绘
.operation .el-dropdown .el-button.el-button--small {
  padding: 6px 8px 6px 12px;
  line-height: normal;
}
.operation .el-dropdown .el-button.el-dropdown__caret-button {
  padding: 6px 2px;
}
//输入框后缀图标可点击
.el-input__suffix {
  cursor: pointer;
}
/*弹窗公共样式*/
.el-dialog__header {
  padding: 0;
  border-bottom: 2px solid #409EFF;
  background-color: #f3f1f2;
}
.el-dialog__header .el-dialog__title {
  display: inline-block;
  padding: 10px 20px 8px;
  line-height: 24px;
  font-size: 18px;
  color: #ffffff;
  background-color: #409EFF;
}
.el-dialog__header .el-dialog__headerbtn {
  top: 14px;
  right: 14px;
}
.el-dialog__footer {
  border-top: 1px solid #e5e5e5;
  padding: 10px 20px;
  text-align: right;
  box-sizing: border-box;
  background-color: #ffffff;
}
.el-dialog__footer .el-button {
  min-width: 100px;
}
.el-dialog__footer .el-button--primary {
  color: #fff;
  background-color: #3d97f5;
  border-color: #3d97f5;
}
.el-dialog__footer .el-button--primary:hover {
  background-color: #409eff;
  border-color: #3d97f5;
}
.el-dialog__footer .el-button--info {
  color: #1a1a1a;
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}
.el-dialog__footer .el-button--info:hover {
  background-color: #f5f5f5;
  border-color: #f0f0f0;
  color: #1a1a1a;
}
/*输入框公共样式*/
.el-input__inner, .el-textarea__inner {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.el-input__inner:hover,
.el-textarea__inner:hover {
  border-color: rgb(64, 158, 255);
}
.el-input__inner:focus,
.el-textarea__inner:focus {
  box-shadow: 0 0 5px rgba(64, 158, 255, 0.5);
}
.el-form-item.is-error .el-input__inner:focus,
.el-form-item.is-error .el-textarea__inner:focus {
  box-shadow: 0 0 5px rgba(245, 108, 108, 0.5);
}
